package com.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 股票基础信息
 * </p>
 *
 * @author chl
 * @since 2025-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="DStockProfile对象", description="股票基础信息")
public class DStockProfile extends Model<DStockProfile> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "ts代码")
    private String tsCode;

    @ApiModelProperty(value = "股票代码")
    private String symbol;

    @ApiModelProperty(value = "股票名称")
    private String name;

    @ApiModelProperty(value = "地域")
    private String area;

    @ApiModelProperty(value = "所属行业")
    private String industry;

    @ApiModelProperty(value = "股票全称")
    private String fullname;

    @ApiModelProperty(value = "英文全称")
    private String enname;

    @ApiModelProperty(value = "拼音缩写")
    private String cnspell;

    @ApiModelProperty(value = "市场类型（主板/创业板/科创板/cdr）")
    private String market;

    @ApiModelProperty(value = "交易所代码")
    private String exchange;

    @ApiModelProperty(value = "交易货币")
    private String currType;

    @ApiModelProperty(value = "上市状态 l上市 d退市 p暂停上市")
    private String listStatus;

    @ApiModelProperty(value = "上市日期")
    private String listDate;

    @ApiModelProperty(value = "退市日期")
    private String delistDate;

    @ApiModelProperty(value = "是否沪深港通标的，n否 h沪股通 s深股通")
    private String isHs;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
